package com.letv.mytest.model;

import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.List;

public class Main {

    public static void main(String[] args) throws Exception {
        System.out.println("test");

        Method m2 = Y.class.getDeclaredMethod("get");
        Type type2 = m2.getGenericReturnType();

        System.out.println(type2);

        Method m3 = Z.class.getDeclaredMethod("get", List.class);
        Type type3 = m3.getGenericReturnType();

        System.out.println(type3);
    }
}
